import request from '@/utils/request'

export function createWorkOrderStatus(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/createWorkOrderStatus',
    method: 'post',
    data: params
  })
}

export function deleteWorkOrderStatus(id) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/deleteWorkOrderStatus?id=' + id,
    method: 'delete'
  })
}

export function selectAll() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/selectAll',
    method: 'get'
  })
}
export function selectAllPage(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/selectAllPage?currentPage=' + params.currentPage + '&pageSize=' + params.pageSize,
    method: 'get'
  })
}

export function selectById(id) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/selectById?id=' + id,
    method: 'get'
  })
}
export function selectByName(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/selectByName',
    method: 'post',
    data: params
  })
}

export function selectOrder() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/selectOrder',
    method: 'get'
  })
}

export function updateWorkOrderStatus(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/updateWorkOrderStatus',
    method: 'post',
    data: params
  })
}

export function selectByNameNotContainNotNoChanging(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/workOrderStatus/selectByNameNotContainNotNoChanging',
    method: 'post',
    data: params
  })
}
